import request from '@/utils/request'
const MODEL_NAME='/proscenium/user'
export function login(email,password) {
  return request({
    url: `${MODEL_NAME}/userLogin`,
    method: 'post',
    data: {
      email,
      password
    }
  })
}
export function getInfo() {
  return request({
    url: `${MODEL_NAME}/showUser`,
    method: 'get'
  })
}
export function updateUser(roles){
  return request({
    url: `${MODEL_NAME}/updateUser`,
    method: 'post',
    data:roles
  })
}
export function userRegister(user){
  return request({
    url: `${MODEL_NAME}/userRegister`,
    method: 'post',
    data:user
  })
}

 
